<kbn-management-app>
  <kbn-management-landing>
    <!-- General info -->
    <div class="page-row">
      <div class="page-row-text">Version: {{::kbnVersion}}</div>
    </div>

    <!-- Management sections for the ES stack -->
    <div
      ng-if="section.visibleItems.length > 0"
      ng-repeat="section in sections"
      class="page-row"
    >
      <div class="kuiPanel management-panel">
        <div class="kuiPanelHeader">
          <div class="kuiPanelHeaderSection">
            <div
              class="management-panel__heading-icon management-panel__heading-icon--{{::section.id}}"
            ></div>
            <div class="kuiPanelHeader__title">
              {{::section.display}}
            </div>
          </div>
        </div>

        <div class="kuiPanelBody management-panel__body">
          <div class="row">
            <ul class="list-unstyled">
              <li
                class="col-xs-4 col-md-3"
                ng-repeat="item in section.visibleItems"
              >
                <a
                  data-test-subj="{{::item.name}}"
                  class="management-panel__link"
                  ng-class="{ 'management-panel__link--disabled': item.disabled || !item.url }"
                  kbn-href="{{::item.disabled ? '' : item.url}}"
                  tooltip="{{::item.tooltip}}"
                  tooltip-placement="bottom"
                  tooltip-popup-delay="400"
                  tooltip-append-to-body="1"
                >
                  {{::item.display}}
                </a>
              </li>
            </ul>
          </div>
        </div>
      </div>
    </div>
  </kbn-management-landing>
</kbn-management-app>
